package practice07;

public class Student extends Person{
    private Klass klass;

    public Klass getKlass(){
        return klass;
    }
    public Student(String name, Integer age) {
        super(name, age);
    }

    public Student(String name, Integer age, Klass klass) {
        super(name, age);
        this.klass = klass;
    }

    @Override
    public String introduce(){
        return super.introduce()+" I am a Student. I am at Class "+klass.getNumber()+".";
    }
}
